﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ZK.InterfaceServer;

namespace ZK.YHP_TransManage.Test
{
    public partial class 接口测试 : Form
    {
        public 接口测试()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var a = AutoControlTransportApiServer.GetSendTypeByCardNo("123");
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Common.Log4.LogManage.WriteInfo("1");
            Common.Log4.LogManage.WriteInfo("2");
            Common.Log4.LogManage.WriteInfo("3");
            Common.Log4.LogManage.WriteInfo("4");
        }

        private void button3_Click(object sender, EventArgs e)
        {
            //*****验证车牌是否可以入矿
            Models.TruckIntoCoalmineSendM sendM = new Models.TruckIntoCoalmineSendM()
            {
                cardNo = "112233445566",
                truckNo = "黑A11111",
                imgs1 = ""
            };
            Models.ReceiveDataBase<object> receiveDataBase = AutoControlTransportApiServer.TruckIntoCoalmine(sendM);
            if (!receiveDataBase.success)
            {
                // MessageThrow(receiveDataBase.msg);
            }
        }

        private void button4_Click(object sender, EventArgs e)
        {
            var a = ZK.InterfaceServer.USMServer.SendMessage(new Models.DeliveryInfo()
            {
                coalYard = "yhp",
                code = "123",
                consigneeOrgName = "新城川站台",
                consigneeStationName = "新城川站",
                createUserName = "lcw",
                driverName = "li",
                goodsCategoryName = "三八块",
                grossTime = "2010-01-01 11:51:19",
                grossWeight = "48.2",
                initialTest = "",
                invoiceRoom = "",
                isNormalVehicle = "0",
                loadTime = "2010-01-01 11:51:19",
                netWeight = "28.2",
                overWeight = "",
                tareTime = "2010-01-01 11:51:19",
                tareWeight = "20",
                vehicleNo = "陕A11111"
            });
        }
    }
}
